package com.example.makerspace.service;

import com.example.makerspace.dto.Result;
import com.example.makerspace.dto.maker.TaskBaseDTO;
import com.example.makerspace.dto.maker.TaskQueryDTO;

import javax.servlet.http.HttpServletRequest;

public interface TaskService {

    Result queryCatalog();

    Result queryInStatus();

    Result create(TaskBaseDTO taskBaseDTO, HttpServletRequest request);

    Result update(TaskBaseDTO taskBaseDTO);

    Result query(TaskQueryDTO taskQueryDTO);

    Result queryById(Integer id,HttpServletRequest request);

    Result delete(Integer id);

    Result updatePublishStatus(TaskBaseDTO taskBaseDTO);

    Result addView(Integer id);

    Result follow(Integer id, HttpServletRequest request);

    Result cancelFollow(Integer id, HttpServletRequest request);
}
